|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.realtime.DSS.WaiterSet
Abstract base class for sets of
RealtimeThread's. Subclasses apply particular queueing policies.
| Field Summary | |
protected java.util.List |
waiters
The list of waiting RealtimeThread's |
| Constructor Summary | |
WaiterSet()
|
|
| Method Summary | |
abstract RealtimeThread |
dequeue()
Dequeue the highest ranked RealtimeThread in the wait set. |
abstract void |
enqueue(RealtimeThread thread)
Enqueue a given RealtimeThread in this
WaitSet. |
abstract RealtimeThread |
first()
Dequeue the highest ranked RealtimeThread in the wait set. |
boolean |
isEmpty()
Test if this WaitSet is empty |
java.util.Iterator |
iterator()
Construct an iterator on this WaitSet. |
boolean |
remove(RealtimeThread thread)
Remove a given thread from this WaiterSet. |
int |
size()
Get the number of waiting RealtimeThread's |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.List waiters
RealtimeThread's
| Constructor Detail |
public WaiterSet()
| Method Detail |
public int size()
RealtimeThread's
public abstract RealtimeThread dequeue()
RealtimeThread in the wait set.
RealtimeThreadpublic boolean isEmpty()
WaitSet is empty
WaitSet is emptypublic boolean remove(RealtimeThread thread)
WaiterSet.
thread - the RealTimeThread
to be removed.
public abstract void enqueue(RealtimeThread thread)
RealtimeThread in this
WaitSet.
thread - the thread to be enqueuedpublic abstract RealtimeThread first()
RealtimeThread in the wait set. Do not dequeue it.
public java.util.Iterator iterator()
WaitSet.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||